export interface IProps {
  global: any;
  buttonPermissions: any;
  stationDataPowerConfig: any;
  menuCode: string;
  queryValue: any;
  activeMonthFetch: any;
  setState: any;
  marketList: any[];
}

/**
 * 列头数据类型
 */
export interface IColumnHeaderType {
  id: number;
  marketId: string;
  fieldTitle: string;
  fieldUnits: string;
  fieldSort: number;
}

/**
 * 行数据类型
 */
export interface IRowDataType {
  recordId: string;
  [key: string]: string; // 动态键值对，键为列ID，值为单元格内容
}

/**
 * 数据源类型
 */
export interface IDataSourceType {
  columnHeaders: IColumnHeaderType[];
  rowData: IRowDataType[];
  total: number;
  page: number;
  size: number;
}

export interface IApplyType {
  label?: string;
  unit?: string;
}

export enum IStationDataPowerConfigPermissions {
  STATIONDATAPOWERCONFIGBUTTTON = 'xxx', // 披露按钮权限
}
